<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="../assets/css/font-awesome.min.css" />
  <!--[if IE 7]>
  <link rel="stylesheet" href="../assets/css/font-awesome-ie7.min.css"/>
  <![endif]-->
  <link rel="stylesheet" href="../assets/css/jquery-ui-1.10.3.full.min.css">
  <link rel="stylesheet" href="../assets/css/ace.min.css" />
  <link rel="stylesheet" href="../css/style.css"/>
<title>添加竞赛项目</title>
</head>

<body>

<div class="page-content">
 <!--用户管理-->
 <div class="user_Manager_style">
 <form id="form1" name="form1" method="post" action="">
  <div class="Manager_style add_user_info">
    <div class="title_name">添加项目</div>
     <button class="btn btn-primary" type="button" id="Add_user_btn">添加项目</button>
     <div id="Add_user_style" style="display:none">
    <div class="add_user_style clearfix">
<!--    <div class="reset_style"><input name="reset" type="reset" value="重置" /class="btn btn-warning"> </div>-->
     <ul class="clearfix">
      <li><label class="label_name">竞赛名称</label> <input name="竞赛名称" type="text"  class="" id="name"/><i style="color:#F60; ">*</i></li>

      <li><label class="label_name">竞赛类型</label><input name="竞赛类型" type="text"  class="" id="type"/><i style="color:#F60; ">*</i></li>

      <li><label class="label_name">发起人编号</label><input name="发起人编号" type="text"  class="" id="id"/><i style="color:#F60; ">*</i></li>

      <li><label class="label_name">竞赛奖金</label><input name="竞赛奖金" type="text"  class="" id="price"/><i style="color:#F60; ">*</i></li>

       <li><label class="label_name">报名人数</label><input name="报名人数" type="text"  class="" id="count"/><i style="color:#F60; ">*</i></li>

        <li><label class="label_name">限制人数</label><input name="限制人数" type="text"  class="" id="limit_count"/><i style="color:#F60; ">*</i></li>

        <li><label class="label_name">比赛内容</label><input name="限制人数" type="text"  class="" id="Mtext"/><i style="color:#F60; ">*</i></li>

        <li><label class="label_name">开始时间</label><input name="开始时间" type="text"  class="" id="startTime"/><i style="color:#F60; ">*</i></li>

        <li><label class="label_name">结束时间</label><input name="结束时间" type="text"  class="" id="endTime"/><i style="color:#F60; ">*</i></li>

     </ul>

     <div id="hao"></div>
     <div class="Remark"><label class="label_name">备注</label><textarea name="" cols="" rows="" style=" width:700px; height:100px; padding:5px;"></textarea></div>
    </div><!--onclick="return checkNull()"-->
    </div>
    </div>
     </form>

      <div class="Manager_style">
    <div class="title_name">竞赛列表</div>
    <div class="Role_list">
     <table id="Role_list" cellpadding="0" cellspacing="0" class="table table-striped table-bordered table-hover">
      <thead>
       <tr>
		   <!-- <th width="60">序列号</th><th>用户名</th>
		   <th width="5%">角色名称</th><th>用户姓名</th>
		   <th>用户状态</th><th>用户性质</th>
		   <th>手机号</th><th>所属名称</th>
		   <th width="20%">备注</th><th>操作</th> -->
      <th>竞赛编号</th>
      <th>竞赛名称</th>
      <th>竞赛类型</th>
      <th>发起人</th>
      <th>竞赛图片</th>
      <th width="150px">操作</th>
	   </tr>
      </thead>

      <tbody>
       <tr>
           <td>1</td>
           <td></td>
           <td></td>
           <td></td>
           <td></td>
       <td class="User_Action_btn">
        <button  type="button" class="btn btn-primary ">修改</button>
        <button  type="button" class="btn btn-warning">删除</button>
        </td>
        </tr>

         <tr>
           <td>2</td>
           <td></td>
           <td></td>
           <td></td>
           <td></td>
       <td class="User_Action_btn">
        <button  type="button" class="btn btn-primary ">修改</button>
        <button  type="button" class="btn btn-warning">删除</button>
        </td>
        </tr>

         <tr>
           <td>3</td>
           <td></td>
           <td></td>
           <td></td>
           <td></td>
       <td class="User_Action_btn">
        <button  type="button" class="btn btn-primary ">修改</button>
        <button  type="button" class="btn btn-warning">删除</button>
        </td>
        </tr>

         <tr>
           <td>4</td>
           <td></td>
           <td></td>
           <td></td>
           <td></td>
       <td class="User_Action_btn">
        <button  type="button" class="btn btn-primary ">修改</button>
        <button  type="button" class="btn btn-warning">删除</button>
        </td>
        </tr>
      </tbody>
     </table>
    </div>
  </div>
 </div>
 </div>
<script src="../assets/js/jquery.min.js"></script>
    <!-- <![endif]-->
    <!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
    <!--[if !IE]> -->
    <script type="text/javascript">
        window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
    </script>
    <!-- <![endif]-->

    <!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
	<script type="text/javascript">
        if("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
    </script>
	<script src="../assets/js/bootstrap.min.js"></script>
 <script type="text/javascript" src="../assets/layer/layer.js"></script>
<script type="text/javascript">
function hide1(){
document.getElementById('ycxz').style.display='';
document.getElementById('gys_name').style.display='none';

}
function display1(){
document.getElementById('ycxz').style.display='none';
document.getElementById('gys_name').style.display='';
}
/***判断用户添加文本**/
 $('#Add_user_btn').on('click', function(){
	   layer.open({
        type: 1,
        title: '添加竞赛项目',
		maxmin: true,
		shadeClose: true, //点击遮罩关闭层
        area : ['860px' , '400px'],
        content:$('#Add_user_style'),
		btn: ['添加','取消'],
	    yes: function(index, layero){
		  if ($("#name").val()==""){
			  layer.alert('竞赛项目名不能为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }

          if ($("#type").val()==""){
			  layer.alert('竞赛类型不能为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }

		   if ($("#id").val()==""){
			  layer.alert('发起人id不能为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }

		   if ($("#price").val()==""){
			  layer.alert('竞赛奖金不能为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }

		   if ($("#count").val()==""){
			  layer.alert('报名人数不能为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }

		  if ($("#limit_count").val()==""){
			  layer.alert('限制人数能为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }

      if ($("#Mtext").val()==""){
        layer.alert('竞赛内容不能为空!',{
              title: '提示框',
        icon:0,

       });
      return false;
          }

      if ($("#startTime").val()==""){
        layer.alert('开始时间不能为空!',{
              title: '提示框',
        icon:0,

       });
      return false;
          }

       if ($("#endTime").val()==""){
        layer.alert('结束时间不能为空!',{
              title: '提示框',
        icon:0,

       });
      return false;
          }

		 /*if(!$(':radio[name=check]:checked').length) {
              layer.alert('请选择用户性质!',{
                title: '提示框',
				icon:0,
          });
		   return false;

             } 	*/

	     else{
			  layer.alert('添加成功！',{
               title: '提示框',
			icon:1,
			  });
			  layer.close(index);
		  }
     } 	,

	 cancel: function(index){

		   layer.alert('确定退出！',{
               title: '提示框',
			  icon:1,
			  });

	}
    });
});

/* $('.reset_Password').on('click', function(){
	 layer.confirm('是否重置密码，重置后原密码将失效？', {
  btn: ['重置','取消'] //按钮
}, function(){
  layer.msg('重置成功！', {time: 1000,icon: 1});
});

});*/
</script>
</body>
</html>
